home *** CD-ROM | disk | FTP | other *** search
/ Joystick Magazine 1996 September / cd joy 74 No16.iso / mac / CD MIEUX-MIEUX N°13 / Escape Velocity / Plug-ins / Great-Civil-War.sit / Great-Civil-War / POVray source files / Rebel Flounder.pov < prev    next >
Text File  |  1996-07-08  |  5KB  |  221 lines

  1. #include "colors.inc"
  2. #include "shapes.inc"
  3. #include "textures.inc"
  4.  
  5. /* Top view */
  6.  
  7. /*
  8. camera {
  9.    location <0, 0, 300>
  10.    direction <0, 0, 24.0>
  11.    up       <0, 1, 0>
  12.    right    <1, 0, 0>
  13.    look_at  <0, 0, 0>
  14. }
  15. */
  16.  
  17. /* Hail view */
  18.  
  19. camera {
  20.    location  <0,  40,  17>
  21.    direction <0,   0,   4.2>
  22.    up        <0,   1,    0>
  23.    right     <1,   0,    0>
  24.    look_at   <0,   0,    0>
  25. }
  26.  
  27. /* Buy view */
  28.  
  29. /*
  30. camera {
  31.    location  <100,  100,  95>
  32.    direction <0,   0,   16.2>
  33.    up        <0,   1,    0>
  34.    right     <1,   0,    0>
  35.    look_at   <0,   0,    0>
  36.    rotate    <97, 0, 97>
  37. }
  38. */
  39.  
  40. /* Rebel Flounder */
  41.  
  42. union {
  43.    union {                      // Cockpit
  44.       sphere {
  45.          <0.0, 3.5, 0.0>,
  46.          0.6
  47.       }  /* sphere */
  48.       cylinder {
  49.          <0.0, 3.5, 0.0>,
  50.          <0.0, 1.5, 0.0>,
  51.          0.6
  52.       }  /* cylinder */
  53.       cone {
  54.          <0.0, -1.5, 0.0>, 0.0
  55.          <0.0, 1.5, 0.0>, 0.6
  56.       }  /* cone */
  57.       pigment { blue 1.1 }
  58.    }  /* union */
  59.  
  60.    union {
  61.       cylinder {                   // Left engine
  62.          <2.0, -5.25, 0.0>,
  63.          <2.0, -1.3, 0.0>,
  64.          1.0
  65.          scale < 1.0, 1.0, 0.5 >
  66.          pigment { red 0.8 green 0.8 blue 0.8 }
  67.       }  /* cylinder */
  68.       cylinder {
  69.          <2.0, -5.25, 0.0>,
  70.          <2.0, -1.29, 0.0>,
  71.          0.9
  72.          scale < 1.0, 1.0, 0.5 >
  73.          pigment { red 0.4 green 0.4 blue 0.4 }
  74.       }  /* cylinder */
  75.    }  /* union */ 
  76.    union {
  77.       cylinder {                   // Right engine
  78.          <-2.0, -5.25, 0.0>,
  79.          <-2.0, -1.3, 0.0>,
  80.          1.0
  81.          scale < 1.0, 1.0, 0.5 >
  82.          pigment { red 0.8 green 0.8 blue 0.8 }
  83.       }  /* cylinder */
  84.       cylinder {
  85.          <-2.0, -5.25, 0.0>,
  86.          <-2.0, -1.29, 0.0>,
  87.          0.9
  88.          scale < 1.0, 1.0, 0.5 >
  89.          pigment { red 0.4 green 0.4 blue 0.4 }
  90.       }  /* cylinder */
  91.    }  /* union */ 
  92.  
  93.    union {
  94.       cone {
  95.          < 0.0,  5.2, 0 >, 0.0
  96.          < 0.0, -1.3, 0 >, 3.0
  97.       }  /* cone */
  98.       cylinder {
  99.          < 0.0, -1.3, 0.0>,
  100.          < 0.0, -5.25, 0.0>,
  101.          3.0
  102.       }  /* cylinder */
  103.       scale < 1.0, 1.0, 0.05 >
  104.    }  /* union */
  105.  
  106.    union {
  107.  
  108.       difference {   // red body edge
  109.  
  110.          box {
  111.             < -0.45, -0.45, -0.03 >,
  112.             <  0.65,  0.65,  0.0 >
  113.          }  /* box */
  114.  
  115.          quartic {
  116.             < 0.0,  0.0,  0.0,  0.0,  0.0, 
  117.               0.0,  0.0,  0.0,  0.0, -1.0,
  118.               0.0,  0.0,  0.0,  0.0,  0.0,  
  119.               0.0,  0.0,  0.0,  0.0,  0.0,
  120.               0.0,  0.0,  1.0,  0.0,  0.0,  
  121.              -1.0,  0.0,  0.0,  0.0,  0.0,
  122.               0.0,  0.0,  0.0,  0.0,  0.145 >
  123.          }  /* quartic */
  124.       
  125.          scale     < 14.0, 12.0, 10.0 >         
  126.          pigment { red 1.0 }
  127.  
  128.       }  /* difference */
  129.          
  130.       difference {   // body
  131.  
  132.          box {
  133.             < -0.45, -0.45, -0.0301 >,
  134.             <  0.65,  0.65,  0.0001  >
  135.          }  /* box */
  136.  
  137.          quartic {
  138.             < 0.0,  0.0,  0.0,  0.0,  0.0, 
  139.               0.0,  0.0,  0.0,  0.0, -1.0,
  140.               0.0,  0.0,  0.0,  0.0,  0.0,  
  141.               0.0,  0.0,  0.0,  0.0,  0.0,
  142.               0.0,  0.0,  1.0,  0.0,  0.0,  
  143.              -1.0,  0.0,  0.0,  0.0,  0.0,
  144.               0.0,  0.0,  0.0,  0.0,  0.145 >
  145.          }  /* quartic */
  146.       
  147.          scale     < 12.6, 10.8, 10.0 >
  148.  
  149.       }  /* difference */
  150.  
  151.    translate < 0.0, -1.6, 0.0 >
  152.  
  153.    }  /* union */
  154.  
  155. /* pigment for top view */      
  156. //   pigment { color red 0.9 green 0.9 blue 0.9 }
  157.  
  158. /* pigment for hail and shipyard view  */      
  159.    pigment { color red 1.0 green 1.0 blue 1.0 }
  160.  
  161.    finish  { 
  162.       ambient 0.1
  163.       diffuse 0.8
  164.       reflection 0.02
  165.       phong_size 6 
  166.    }  /* finish */
  167.  
  168. //   rotate z*270
  169. //   translate <-1.0, 0.0, 0.0>      // Use only for Buy-View
  170.  
  171. }  /* union */
  172.  
  173.  
  174. /* Light for top view */
  175.  
  176. /*
  177. light_source {
  178.    <-200.0, -170.0, 260.0>
  179.    colour red 0.6 green 0.6 blue 0.6
  180.    spotlight
  181.    point_at <0, 0, 0>
  182.    radius 10
  183.    falloff 20
  184.    tightness 10
  185. }
  186. light_source {
  187.    <-210.0, -180.0, 250.0>
  188.    colour red 0.6 green 0.6 blue 0.6
  189.    spotlight
  190.    point_at <0, 0, 0>
  191.    radius 10
  192.    falloff 20
  193.    tightness 10
  194. }
  195. */
  196.  
  197. /* Light for hail view */
  198.  
  199. light_source {
  200.    <15.0, 20.0, 15.0>
  201.    colour red 1.0 green 1.0 blue 1.0
  202.    spotlight
  203.    point_at <0, 0, 0>
  204.    radius 20
  205.    falloff 20
  206.    tightness 10
  207. }
  208.  
  209. /* Light for shipyard view */
  210.  
  211. /*
  212. light_source {
  213.    <60.0, 80.0, 75.0>
  214.    colour red 1.0 green 1.0 blue 1.0
  215.    spotlight
  216.    point_at <0, 0, 0>
  217.    radius 20
  218.    falloff 20
  219.    tightness 10
  220. }
  221. */